/**
 *
 * 用户管理模块
 *
 * @author leon
 * @createTime '2018/8/16'
 */


const Main = () => import( '@/views/main');

const UserInfo = () => import('@/views/user/info');
const UserOrder = () => import('@/views/user/order');

export default [
    {
        path: '/user-manage',
        name: 'userManage',
        meta: {
            name: '个人中心', unfold: true,
            icon: 'el-icon-setting'
        },
        component: Main,
        children: [
            {
                path: 'info',
                name: 'userInfo',
                component: UserInfo,
                meta: {
                    requireAuth: true,
                    name: '基本信息'
                }
            },
            {
                path: 'order',
                name: 'userOrder',
                component: UserOrder,
                meta: {
                    requireAuth: true,
                    name: '我的订单'
                }
            }
        ],
        redirect: {
            name: 'userInfo'
        }
    }
]
